if Assets == nil then
    Assets = {}
end


local LANGUAGE = "en"
if type(TUNING.__NPC_LANGUAGE) == "function" then
    LANGUAGE = TUNING.__NPC_LANGUAGE()
elseif type(TUNING.__NPC_LANGUAGE) == "string" then
    LANGUAGE = TUNING.__NPC_LANGUAGE
end



local function Load_and_Register_Img(tex_name)
    table.insert(Assets,      Asset("ATLAS", "images/inventoryimages/"..tex_name..".xml")                         )     --  -- 载入贴图文件
    table.insert(Assets,      Asset("IMAGE", "images/inventoryimages/"..tex_name..".tex")                         )     --  -- 载入贴图文件
    RegisterInventoryItemAtlas("images/inventoryimages/"..tex_name.. ".xml", tex_name..".tex")  -- 注册贴图文件【必须要做】
end
-------------------------------------------------------------------------
Load_and_Register_Img("spell_reject_the_npc")
Load_and_Register_Img("npc_item_tree_trade_station_kit")




-------------------------------------------------------------------------------------------------------------------------------------------------
local STR_TABLE_spell_reject_the_npc = TUNING.NPC_CHAT_TABLE[LANGUAGE] ["spell_reject_the_npc"] or {}
GLOBAL.STRINGS.NAMES[string.upper("spell_reject_the_npc")] = STR_TABLE_spell_reject_the_npc.Production_Column_name    -- -- 制造栏里展示的名字
STRINGS.RECIPE_DESC[string.upper("spell_reject_the_npc")] = STR_TABLE_spell_reject_the_npc.Production_Column_desc  -- --  制造栏里展示的说明
AddRecipeToFilter("spell_reject_the_npc","CHARACTER")        --- --- 在类别里注册物品名字
AddRecipe2(
    "spell_reject_the_npc",            --  --  inst.prefab  实体名字
    {}, -- 制造素材需求，角色三维资源必须是5的倍数，Ingredient("goldnugget", 1)
    TECH.NONE,
    {
        builder_tag="player",    --------- -- 【builder_tag】只给指定tag的角色能制造这件物品，角色添加/移除 tag 都能立马解锁/隐藏该物品
        -- sg_state = "combat_lunge_start",
        sg_state = "give",
        -- actionstr = "panda_fisherman_spell_casting",
        -- sg_state = "fish_shell_recharge_action",
        atlas = "images/inventoryimages/spell_reject_the_npc.xml",
        image = "spell_reject_the_npc.tex",
    },
    {"CHARACTER"}       -- -- 在哪些制造分栏出现，可以多个 -- "CHARACTER"
)
RemoveRecipeFromFilter("spell_reject_the_npc","MODS")                       -- -- 在【模组物品】标签里移除这个。

-------------------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------------------
-- local STR_TABLE_npc_item_tree_trade_station_kit = TUNING.NPC_CHAT_TABLE[LANGUAGE] ["npc_item_tree_trade_station"] or {}
-- local npc_item_tree_trade_station_cost = 200
-- if TUNING.NPC_CONFIG.REWARDS_LESS  == true then
--     npc_item_tree_trade_station_cost = 250
-- end
-- GLOBAL.STRINGS.NAMES[string.upper("npc_item_tree_trade_station_kit")] = STR_TABLE_npc_item_tree_trade_station_kit.Production_Column_name    -- -- 制造栏里展示的名字
-- STRINGS.RECIPE_DESC[string.upper("npc_item_tree_trade_station_kit")] = STR_TABLE_npc_item_tree_trade_station_kit.Production_Column_desc  -- --  制造栏里展示的说明
-- AddRecipeToFilter("npc_item_tree_trade_station_kit","CHARACTER")        --- --- 在类别里注册物品名字
-- AddRecipe2(
--     "npc_item_tree_trade_station_kit",            --  --  inst.prefab  实体名字
--     {Ingredient("goldnugget", npc_item_tree_trade_station_cost)}, -- 角色三维资源必须是5的倍数
--     TECH.NONE,
--     {
--         builder_tag="player",    --------- -- 【builder_tag】只给指定tag的角色能制造这件物品，角色添加/移除 tag 都能立马解锁/隐藏该物品
--         -- sg_state = "combat_lunge_start",
--         -- actionstr = "panda_fisherman_spell_casting",
--         -- sg_state = "fish_shell_recharge_action",
--         atlas = "images/inventoryimages/npc_item_tree_trade_station_kit.xml",
--         image = "npc_item_tree_trade_station_kit.tex",
--     },
--     {"CHARACTER"}       -- -- 在哪些制造分栏出现，可以多个 -- "CHARACTER"
-- )
-- RemoveRecipeFromFilter("npc_item_tree_trade_station_kit","MODS")                       -- -- 在【模组物品】标签里移除这个。

-------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------



